<?php


class My_View_Helper_InsertarFila extends Zend_View_Helper_HtmlElement {

    /**
     *
     * @param string $url
     * @param string $content
     * @param array|string $attribs
     * @return string 
     */
    public function InsertarFila($controller,$idZona=null,$more=null,$texto=null)
    {
        
        $more=($more) ? '/'.$more : '';
        $texto=($texto) ? $texto : 'Añadir';
        
        if(is_null($idZona))
        {
            return $this->view->anchor($controller.'/insertar'.$more,$texto,array('class'=>'utiladd'));
        }else{
            return $this->view->anchor($controller.'/insertar/idZona/'.$idZona.$more,$texto,array('class'=>'utiladd'));
        }
        
        
    		
    }

}